import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/index'
import Home from '@/components/home'
import welcome from '@/components/welcome'
import userList from '@/components/userList'
import jiaoseList from '@/components/jiaoseList'
import quanxianList from '@/components/quanxianList'
import goodsList from '@/components/goodsList'
import orderList from '@/components/orderList'
import fenleicanshu from '@/components/fenleicanshu'
import goodsType from '@/components/goodsType'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index
    },
    {
      path:'/home',
      name:'home',
      component:Home,
      redirect:'/welcome',
      children:[{
        path:'/welcome',
        name:'welcome',
        component:welcome
      },
      {
        path:'/userList',
        name:'userList',
        component:userList
      },
      {
      path:'/jiaoseList',
      name:'jiaoseList',
      component:jiaoseList
      },
    {
      path:'/quanxianList',
      name:'quanxianList',
      component:quanxianList
    },
    {
      path:'/goodsList',
      name:'goodsList',
      component:goodsList
    },
    {
      path:'/orderList',
      name:'ordersList',
      component:orderList
    },
    {
      path:'/goodsType',
      name:'goodsType',
      component:goodsType
    },
    {
      path:'/fenleicanshu',
      name:'fenleicanshu',
      component:fenleicanshu
    },]
    }
  ]
})
